import cn.hutool.core.util.ObjectUtil;

/**
 * @author pzy
 * @date 2024/6/20
 */
public class DeepCloneDemo {
    public static void main(String[] args) {
        User user = new User();
        user.setName("A");
        user.setAge(1);
        User user1 = ObjectUtil.cloneByStream(user);
        user.setAge(2);
        System.out.println("user = " + user);
        System.out.println("user1 = " + user1);
    }
}
